package cn.belong.jk.entity;

import java.io.Serializable;
import java.util.Date;

public class Factory implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8668413907743442527L;
	
    private String id;//将主键都映射成id  
    private String fullName;  
    private String factoryName;  
    private String contacts;  
    private String phone;  
    private String mobile;  
    private String fax;  
    private String cnote;  
    private String inspector;  
    private Integer orderNo;  
	private String state;
    private String createBy;  
    private String creatDept;  
    private java.util.Date creatTime;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getFullName() {
		return fullName;
	}
	public void setFullName(String fullName) {
		this.fullName = fullName;
	}
	public String getFactoryName() {
		return factoryName;
	}
	public void setFactoryName(String factoryName) {
		this.factoryName = factoryName;
	}
	public String getContacts() {
		return contacts;
	}
	public void setContacts(String contacts) {
		this.contacts = contacts;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getFax() {
		return fax;
	}
	public void setFax(String fax) {
		this.fax = fax;
	}
	public String getCnote() {
		return cnote;
	}
	public void setCnote(String cnote) {
		this.cnote = cnote;
	}
	public String getInspector() {
		return inspector;
	}
	public void setInspector(String inspector) {
		this.inspector = inspector;
	}
	public Integer getOrderNo() {
		return orderNo;
	}
	public void setOrderNo(Integer orderNo) {
		this.orderNo = orderNo;
	}
	public String getCreateBy() {
		return createBy;
	}
	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}
	public String getCreatDept() {
		return creatDept;
	}
	public void setCreatDept(String creatDept) {
		this.creatDept = creatDept;
	}
	public java.util.Date getCreatTime() {
		return creatTime;
	}
	public void setCreatTime(java.util.Date creatTime) {
		this.creatTime = creatTime;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	@Override
	public String toString() {
		return "Factory [id=" + id + ", fullName=" + fullName + ", factoryName=" + factoryName + ", contacts="
				+ contacts + ", phone=" + phone + ", mobile=" + mobile + ", fax=" + fax + ", cnote=" + cnote
				+ ", inspector=" + inspector + ", orderNo=" + orderNo + ", state=" + state + ", createBy=" + createBy
				+ ", creatDept=" + creatDept + ", creatTime=" + creatTime + "]";
	}
	public Factory(String id, String fullName, String factoryName, String contacts, String phone, String mobile,
			String fax, String cnote, String inspector, Integer orderNo, String state, String createBy,
			String creatDept, Date creatTime) {
		super();
		this.id = id;
		this.fullName = fullName;
		this.factoryName = factoryName;
		this.contacts = contacts;
		this.phone = phone;
		this.mobile = mobile;
		this.fax = fax;
		this.cnote = cnote;
		this.inspector = inspector;
		this.orderNo = orderNo;
		this.state = state;
		this.createBy = createBy;
		this.creatDept = creatDept;
		this.creatTime = creatTime;
	}
	public Factory() {
		super();
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Factory other = (Factory) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}

    
    
}
